//
// Created by jie.jiang on 2022/12/7.
//

#include "Led.h"
#include "main.h"
#include "stm32f1xx_it.h"

uint32_t g_ledFlashInterval=0;

void ledFlash(uint16_t tick){
  if(g_SysTick-g_ledFlashInterval<(UINT32_MAX>>1)) {
    HAL_GPIO_TogglePin(led_GPIO_Port, led_Pin);
    g_ledFlashInterval=g_SysTick+tick;
  }
}